//@ts-nocheck
import React from 'react';
import ReactDOM from 'react-dom';
import Counter1 from './components/Counter1';
import Counter2 from './components/Counter2';
import {Provider} from 'react-redux';
import {store,persistor} from './store';
import {PersistGate} from 'redux-persist/integration/react';
//Provider 是一个组件,负责通过cotnext上下文向下层组件传递仓库store
//@ts-ignore
ReactDOM.render(<Provider store={store}>
  <PersistGate persistor={persistor}>
    <Counter1 />
    <hr/>
    <Counter2 />
  </PersistGate>
</Provider>, document.getElementById('root'));
